package com.example.xwcommon.service.fallback;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.xwcommon.entity.Weibo;
import com.example.xwcommon.service.WeiboService;
import com.example.xwcommon.vo.Response;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FallBackWeiboServiceImpl implements WeiboService {
    @Override
    public Response<Weibo> addWeibo(String userName, String title, String content, String img) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Weibo> getWeiboById(Integer weiboId) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Page<Weibo>> getWeiboListByLoginName(Integer pageNum, Integer pageSize, String loginName, Integer state) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<List<Weibo>> getWeiboListByState(Integer state) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Page<Weibo>> list(Integer pageNum, Integer pageSize, String findtxt, Integer state) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Weibo> updateState(Integer weiboId, Integer state) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Weibo> updateReadCount(Integer weiboId) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Integer> getWeiboCountByLoginName(String loginName, Integer state) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Weibo> deleteWeibo(Integer weiboId) {
        return new Response<>(600,"服务不可用",null);
    }
}
